Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

ACTIVE(U61(tt, V2)) → U621(isNatIList(V2))
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(tt, V2)) → U421(isNatIList(V2))
PROPER(U91(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U51(X1, X2)) → PROPER(X2)
U711(ok(X1), ok(X2), ok(X3)) → U711(X1, X2, X3)
ACTIVE(U51(tt, V2)) → U521(isNatList(V2))
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → TAKE(X1, active(X2))
ACTIVE(U31(X)) → U311(active(X))
PROPER(U42(X)) → U421(proper(X))
ACTIVE(cons(X1, X2)) → CONS(active(X1), X2)
ACTIVE(U93(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U71(X1, X2, X3)) → U711(active(X1), X2, X3)
PROPER(isNatList(X)) → PROPER(X)
ACTIVE(U61(tt, V2)) → ISNATILIST(V2)
ACTIVE(U72(X1, X2)) → U721(active(X1), X2)
U931(ok(X1), ok(X2), ok(X3), ok(X4)) → U931(X1, X2, X3, X4)
PROPER(length(X)) → LENGTH(proper(X))
ACTIVE(take(X1, X2)) → ACTIVE(X1)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X4)
ACTIVE(U52(X)) → U521(active(X))
PROPER(U93(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U92(X1, X2, X3, X4)) → U921(proper(X1), proper(X2), proper(X3), proper(X4))
U411(ok(X1), ok(X2)) → U411(X1, X2)
ACTIVE(U91(X1, X2, X3, X4)) → U911(active(X1), X2, X3, X4)
ACTIVE(U81(X)) → U811(active(X))
ACTIVE(take(X1, X2)) → TAKE(active(X1), X2)
PROPER(length(X)) → PROPER(X)
ACTIVE(isNatList(cons(V1, V2))) → U511(isNat(V1), V2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X3)
PROPER(isNatList(X)) → ISNATLIST(proper(X))
ACTIVE(U41(X1, X2)) → U411(active(X1), X2)
PROPER(U62(X)) → PROPER(X)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U72(tt, L)) → S(length(L))
ACTIVE(U31(X)) → ACTIVE(X)
U611(ok(X1), ok(X2)) → U611(X1, X2)
S(ok(X)) → S(X)
CONS(mark(X1), X2) → CONS(X1, X2)
ACTIVE(U61(X1, X2)) → U611(active(X1), X2)
ACTIVE(U71(X1, X2, X3)) → ACTIVE(X1)
PROPER(U71(X1, X2, X3)) → U711(proper(X1), proper(X2), proper(X3))
TOP(mark(X)) → PROPER(X)
ACTIVE(U42(X)) → ACTIVE(X)
PROPER(U11(X)) → U111(proper(X))
ACTIVE(isNatIList(cons(V1, V2))) → U411(isNat(V1), V2)
TOP(ok(X)) → ACTIVE(X)
ACTIVE(length(X)) → ACTIVE(X)
ACTIVE(isNat(s(V1))) → U211(isNat(V1))
ACTIVE(U92(tt, IL, M, N)) → U931(isNat(N), IL, M, N)
U721(mark(X1), X2) → U721(X1, X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(U21(X)) → U211(proper(X))
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U51(tt, V2)) → ISNATLIST(V2)
LENGTH(mark(X)) → LENGTH(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X3)
U511(mark(X1), X2) → U511(X1, X2)
S(mark(X)) → S(X)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → CONS(proper(X1), proper(X2))
ACTIVE(length(X)) → LENGTH(active(X))
ISNATLIST(ok(X)) → ISNATLIST(X)
ACTIVE(U91(tt, IL, M, N)) → U921(isNat(M), IL, M, N)
U111(mark(X)) → U111(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X4)
ACTIVE(U51(X1, X2)) → U511(active(X1), X2)
ACTIVE(isNat(s(V1))) → ISNAT(V1)
PROPER(U62(X)) → U621(proper(X))
U711(mark(X1), X2, X3) → U711(X1, X2, X3)
U721(ok(X1), ok(X2)) → U721(X1, X2)
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U93(X1, X2, X3, X4)) → U931(proper(X1), proper(X2), proper(X3), proper(X4))
PROPER(U71(X1, X2, X3)) → PROPER(X3)
PROPER(U42(X)) → PROPER(X)
PROPER(U21(X)) → PROPER(X)
U511(ok(X1), ok(X2)) → U511(X1, X2)
PROPER(U81(X)) → PROPER(X)
PROPER(U71(X1, X2, X3)) → PROPER(X1)
U311(mark(X)) → U311(X)
ACTIVE(U92(X1, X2, X3, X4)) → U921(active(X1), X2, X3, X4)
ACTIVE(U72(tt, L)) → LENGTH(L)
ACTIVE(U11(X)) → U111(active(X))
PROPER(U91(X1, X2, X3, X4)) → U911(proper(X1), proper(X2), proper(X3), proper(X4))
U621(ok(X)) → U621(X)
PROPER(U72(X1, X2)) → PROPER(X2)
ACTIVE(isNat(length(V1))) → U111(isNatList(V1))
U311(ok(X)) → U311(X)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X2)
U411(mark(X1), X2) → U411(X1, X2)
ACTIVE(length(cons(N, L))) → U711(isNatList(L), L, N)
U921(mark(X1), X2, X3, X4) → U921(X1, X2, X3, X4)
PROPER(U72(X1, X2)) → PROPER(X1)
ACTIVE(U93(tt, IL, M, N)) → TAKE(M, IL)
U421(ok(X)) → U421(X)
U211(ok(X)) → U211(X)
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(isNatList(take(V1, V2))) → U611(isNat(V1), V2)
U921(ok(X1), ok(X2), ok(X3), ok(X4)) → U921(X1, X2, X3, X4)
ACTIVE(isNatIList(V)) → ISNATLIST(V)
ACTIVE(zeros) → CONS(0, zeros)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
ACTIVE(isNatList(take(V1, V2))) → ISNAT(V1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(isNatIList(cons(V1, V2))) → ISNAT(V1)
PROPER(U72(X1, X2)) → U721(proper(X1), proper(X2))
U911(mark(X1), X2, X3, X4) → U911(X1, X2, X3, X4)
ISNATILIST(ok(X)) → ISNATILIST(X)
ACTIVE(U72(X1, X2)) → ACTIVE(X1)
PROPER(U61(X1, X2)) → U611(proper(X1), proper(X2))
PROPER(U11(X)) → PROPER(X)
ACTIVE(U81(X)) → ACTIVE(X)
PROPER(U81(X)) → U811(proper(X))
ACTIVE(U42(X)) → U421(active(X))
ACTIVE(U62(X)) → U621(active(X))
PROPER(s(X)) → S(proper(X))
U211(mark(X)) → U211(X)
ACTIVE(isNatList(cons(V1, V2))) → ISNAT(V1)
ACTIVE(U93(tt, IL, M, N)) → CONS(N, take(M, IL))
PROPER(U31(X)) → PROPER(X)
ACTIVE(U91(X1, X2, X3, X4)) → ACTIVE(X1)
PROPER(isNatIList(X)) → ISNATILIST(proper(X))
ACTIVE(take(0, IL)) → ISNATILIST(IL)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U52(X)) → PROPER(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
ACTIVE(U71(tt, L, N)) → U721(isNat(N), L)
ACTIVE(U52(X)) → ACTIVE(X)
U521(mark(X)) → U521(X)
PROPER(isNat(X)) → PROPER(X)
LENGTH(ok(X)) → LENGTH(X)
ACTIVE(U71(tt, L, N)) → ISNAT(N)
PROPER(take(X1, X2)) → TAKE(proper(X1), proper(X2))
ACTIVE(take(s(M), cons(N, IL))) → U911(isNatIList(IL), IL, M, N)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(isNat(length(V1))) → ISNATLIST(V1)
PROPER(isNatIList(X)) → PROPER(X)
ACTIVE(U92(tt, IL, M, N)) → ISNAT(N)
PROPER(U41(X1, X2)) → U411(proper(X1), proper(X2))
U621(mark(X)) → U621(X)
PROPER(s(X)) → PROPER(X)
ACTIVE(take(s(M), cons(N, IL))) → ISNATILIST(IL)
ACTIVE(U91(tt, IL, M, N)) → ISNAT(M)
PROPER(take(X1, X2)) → PROPER(X2)
U811(mark(X)) → U811(X)
ACTIVE(U11(X)) → ACTIVE(X)
U611(mark(X1), X2) → U611(X1, X2)
TOP(ok(X)) → TOP(active(X))
PROPER(isNat(X)) → ISNAT(proper(X))
PROPER(U61(X1, X2)) → PROPER(X1)
ACTIVE(U21(X)) → ACTIVE(X)
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
ACTIVE(take(0, IL)) → U811(isNatIList(IL))
ACTIVE(isNatIList(V)) → U311(isNatList(V))
ISNAT(ok(X)) → ISNAT(X)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X4)
ACTIVE(length(cons(N, L))) → ISNATLIST(L)
ACTIVE(U93(X1, X2, X3, X4)) → U931(active(X1), X2, X3, X4)
PROPER(U52(X)) → U521(proper(X))
PROPER(U41(X1, X2)) → PROPER(X1)
U911(ok(X1), ok(X2), ok(X3), ok(X4)) → U911(X1, X2, X3, X4)
U811(ok(X)) → U811(X)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X2)
U521(ok(X)) → U521(X)
U111(ok(X)) → U111(X)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
PROPER(U71(X1, X2, X3)) → PROPER(X2)
ACTIVE(U21(X)) → U211(active(X))
ACTIVE(U41(tt, V2)) → ISNATILIST(V2)
U421(mark(X)) → U421(X)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(U51(X1, X2)) → U511(proper(X1), proper(X2))
ACTIVE(U92(X1, X2, X3, X4)) → ACTIVE(X1)
TOP(mark(X)) → TOP(proper(X))
U931(mark(X1), X2, X3, X4) → U931(X1, X2, X3, X4)
PROPER(U31(X)) → U311(proper(X))
ACTIVE(s(X)) → S(active(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(U61(tt, V2)) → U621(isNatIList(V2))
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(tt, V2)) → U421(isNatIList(V2))
PROPER(U91(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U51(X1, X2)) → PROPER(X2)
U711(ok(X1), ok(X2), ok(X3)) → U711(X1, X2, X3)
ACTIVE(U51(tt, V2)) → U521(isNatList(V2))
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → TAKE(X1, active(X2))
ACTIVE(U31(X)) → U311(active(X))
PROPER(U42(X)) → U421(proper(X))
ACTIVE(cons(X1, X2)) → CONS(active(X1), X2)
ACTIVE(U93(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U71(X1, X2, X3)) → U711(active(X1), X2, X3)
PROPER(isNatList(X)) → PROPER(X)
ACTIVE(U61(tt, V2)) → ISNATILIST(V2)
ACTIVE(U72(X1, X2)) → U721(active(X1), X2)
U931(ok(X1), ok(X2), ok(X3), ok(X4)) → U931(X1, X2, X3, X4)
PROPER(length(X)) → LENGTH(proper(X))
ACTIVE(take(X1, X2)) → ACTIVE(X1)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X4)
ACTIVE(U52(X)) → U521(active(X))
PROPER(U93(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U92(X1, X2, X3, X4)) → U921(proper(X1), proper(X2), proper(X3), proper(X4))
U411(ok(X1), ok(X2)) → U411(X1, X2)
ACTIVE(U91(X1, X2, X3, X4)) → U911(active(X1), X2, X3, X4)
ACTIVE(U81(X)) → U811(active(X))
ACTIVE(take(X1, X2)) → TAKE(active(X1), X2)
PROPER(length(X)) → PROPER(X)
ACTIVE(isNatList(cons(V1, V2))) → U511(isNat(V1), V2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X3)
PROPER(isNatList(X)) → ISNATLIST(proper(X))
ACTIVE(U41(X1, X2)) → U411(active(X1), X2)
PROPER(U62(X)) → PROPER(X)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U72(tt, L)) → S(length(L))
ACTIVE(U31(X)) → ACTIVE(X)
U611(ok(X1), ok(X2)) → U611(X1, X2)
S(ok(X)) → S(X)
CONS(mark(X1), X2) → CONS(X1, X2)
ACTIVE(U61(X1, X2)) → U611(active(X1), X2)
ACTIVE(U71(X1, X2, X3)) → ACTIVE(X1)
PROPER(U71(X1, X2, X3)) → U711(proper(X1), proper(X2), proper(X3))
TOP(mark(X)) → PROPER(X)
ACTIVE(U42(X)) → ACTIVE(X)
PROPER(U11(X)) → U111(proper(X))
ACTIVE(isNatIList(cons(V1, V2))) → U411(isNat(V1), V2)
TOP(ok(X)) → ACTIVE(X)
ACTIVE(length(X)) → ACTIVE(X)
ACTIVE(isNat(s(V1))) → U211(isNat(V1))
ACTIVE(U92(tt, IL, M, N)) → U931(isNat(N), IL, M, N)
U721(mark(X1), X2) → U721(X1, X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(U21(X)) → U211(proper(X))
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U51(tt, V2)) → ISNATLIST(V2)
LENGTH(mark(X)) → LENGTH(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X3)
U511(mark(X1), X2) → U511(X1, X2)
S(mark(X)) → S(X)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → CONS(proper(X1), proper(X2))
ACTIVE(length(X)) → LENGTH(active(X))
ISNATLIST(ok(X)) → ISNATLIST(X)
ACTIVE(U91(tt, IL, M, N)) → U921(isNat(M), IL, M, N)
U111(mark(X)) → U111(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X4)
ACTIVE(U51(X1, X2)) → U511(active(X1), X2)
ACTIVE(isNat(s(V1))) → ISNAT(V1)
PROPER(U62(X)) → U621(proper(X))
U711(mark(X1), X2, X3) → U711(X1, X2, X3)
U721(ok(X1), ok(X2)) → U721(X1, X2)
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U93(X1, X2, X3, X4)) → U931(proper(X1), proper(X2), proper(X3), proper(X4))
PROPER(U71(X1, X2, X3)) → PROPER(X3)
PROPER(U42(X)) → PROPER(X)
PROPER(U21(X)) → PROPER(X)
U511(ok(X1), ok(X2)) → U511(X1, X2)
PROPER(U81(X)) → PROPER(X)
PROPER(U71(X1, X2, X3)) → PROPER(X1)
U311(mark(X)) → U311(X)
ACTIVE(U92(X1, X2, X3, X4)) → U921(active(X1), X2, X3, X4)
ACTIVE(U72(tt, L)) → LENGTH(L)
ACTIVE(U11(X)) → U111(active(X))
PROPER(U91(X1, X2, X3, X4)) → U911(proper(X1), proper(X2), proper(X3), proper(X4))
U621(ok(X)) → U621(X)
PROPER(U72(X1, X2)) → PROPER(X2)
ACTIVE(isNat(length(V1))) → U111(isNatList(V1))
U311(ok(X)) → U311(X)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X2)
U411(mark(X1), X2) → U411(X1, X2)
ACTIVE(length(cons(N, L))) → U711(isNatList(L), L, N)
U921(mark(X1), X2, X3, X4) → U921(X1, X2, X3, X4)
PROPER(U72(X1, X2)) → PROPER(X1)
ACTIVE(U93(tt, IL, M, N)) → TAKE(M, IL)
U421(ok(X)) → U421(X)
U211(ok(X)) → U211(X)
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(isNatList(take(V1, V2))) → U611(isNat(V1), V2)
U921(ok(X1), ok(X2), ok(X3), ok(X4)) → U921(X1, X2, X3, X4)
ACTIVE(isNatIList(V)) → ISNATLIST(V)
ACTIVE(zeros) → CONS(0, zeros)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
ACTIVE(isNatList(take(V1, V2))) → ISNAT(V1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(isNatIList(cons(V1, V2))) → ISNAT(V1)
PROPER(U72(X1, X2)) → U721(proper(X1), proper(X2))
U911(mark(X1), X2, X3, X4) → U911(X1, X2, X3, X4)
ISNATILIST(ok(X)) → ISNATILIST(X)
ACTIVE(U72(X1, X2)) → ACTIVE(X1)
PROPER(U61(X1, X2)) → U611(proper(X1), proper(X2))
PROPER(U11(X)) → PROPER(X)
ACTIVE(U81(X)) → ACTIVE(X)
PROPER(U81(X)) → U811(proper(X))
ACTIVE(U42(X)) → U421(active(X))
ACTIVE(U62(X)) → U621(active(X))
PROPER(s(X)) → S(proper(X))
U211(mark(X)) → U211(X)
ACTIVE(isNatList(cons(V1, V2))) → ISNAT(V1)
ACTIVE(U93(tt, IL, M, N)) → CONS(N, take(M, IL))
PROPER(U31(X)) → PROPER(X)
ACTIVE(U91(X1, X2, X3, X4)) → ACTIVE(X1)
PROPER(isNatIList(X)) → ISNATILIST(proper(X))
ACTIVE(take(0, IL)) → ISNATILIST(IL)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U52(X)) → PROPER(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
ACTIVE(U71(tt, L, N)) → U721(isNat(N), L)
ACTIVE(U52(X)) → ACTIVE(X)
U521(mark(X)) → U521(X)
PROPER(isNat(X)) → PROPER(X)
LENGTH(ok(X)) → LENGTH(X)
ACTIVE(U71(tt, L, N)) → ISNAT(N)
PROPER(take(X1, X2)) → TAKE(proper(X1), proper(X2))
ACTIVE(take(s(M), cons(N, IL))) → U911(isNatIList(IL), IL, M, N)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(isNat(length(V1))) → ISNATLIST(V1)
PROPER(isNatIList(X)) → PROPER(X)
ACTIVE(U92(tt, IL, M, N)) → ISNAT(N)
PROPER(U41(X1, X2)) → U411(proper(X1), proper(X2))
U621(mark(X)) → U621(X)
PROPER(s(X)) → PROPER(X)
ACTIVE(take(s(M), cons(N, IL))) → ISNATILIST(IL)
ACTIVE(U91(tt, IL, M, N)) → ISNAT(M)
PROPER(take(X1, X2)) → PROPER(X2)
U811(mark(X)) → U811(X)
ACTIVE(U11(X)) → ACTIVE(X)
U611(mark(X1), X2) → U611(X1, X2)
TOP(ok(X)) → TOP(active(X))
PROPER(isNat(X)) → ISNAT(proper(X))
PROPER(U61(X1, X2)) → PROPER(X1)
ACTIVE(U21(X)) → ACTIVE(X)
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
ACTIVE(take(0, IL)) → U811(isNatIList(IL))
ACTIVE(isNatIList(V)) → U311(isNatList(V))
ISNAT(ok(X)) → ISNAT(X)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X4)
ACTIVE(length(cons(N, L))) → ISNATLIST(L)
ACTIVE(U93(X1, X2, X3, X4)) → U931(active(X1), X2, X3, X4)
PROPER(U52(X)) → U521(proper(X))
PROPER(U41(X1, X2)) → PROPER(X1)
U911(ok(X1), ok(X2), ok(X3), ok(X4)) → U911(X1, X2, X3, X4)
U811(ok(X)) → U811(X)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X2)
U521(ok(X)) → U521(X)
U111(ok(X)) → U111(X)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
PROPER(U71(X1, X2, X3)) → PROPER(X2)
ACTIVE(U21(X)) → U211(active(X))
ACTIVE(U41(tt, V2)) → ISNATILIST(V2)
U421(mark(X)) → U421(X)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(U51(X1, X2)) → U511(proper(X1), proper(X2))
ACTIVE(U92(X1, X2, X3, X4)) → ACTIVE(X1)
TOP(mark(X)) → TOP(proper(X))
U931(mark(X1), X2, X3, X4) → U931(X1, X2, X3, X4)
PROPER(U31(X)) → U311(proper(X))
ACTIVE(s(X)) → S(active(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 25 SCCs with 79 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNAT(ok(X)) → ISNAT(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNAT(ok(X)) → ISNAT(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATLIST(ok(X)) → ISNATLIST(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATLIST(ok(X)) → ISNATLIST(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(ok(X)) → ISNATILIST(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(ok(X)) → ISNATILIST(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U931(ok(X1), ok(X2), ok(X3), ok(X4)) → U931(X1, X2, X3, X4)
U931(mark(X1), X2, X3, X4) → U931(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U931(ok(X1), ok(X2), ok(X3), ok(X4)) → U931(X1, X2, X3, X4)
U931(mark(X1), X2, X3, X4) → U931(X1, X2, X3, X4)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U921(ok(X1), ok(X2), ok(X3), ok(X4)) → U921(X1, X2, X3, X4)
U921(mark(X1), X2, X3, X4) → U921(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U921(ok(X1), ok(X2), ok(X3), ok(X4)) → U921(X1, X2, X3, X4)
U921(mark(X1), X2, X3, X4) → U921(X1, X2, X3, X4)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U911(ok(X1), ok(X2), ok(X3), ok(X4)) → U911(X1, X2, X3, X4)
U911(mark(X1), X2, X3, X4) → U911(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U911(ok(X1), ok(X2), ok(X3), ok(X4)) → U911(X1, X2, X3, X4)
U911(mark(X1), X2, X3, X4) → U911(X1, X2, X3, X4)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U811(mark(X)) → U811(X)
U811(ok(X)) → U811(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U811(ok(X)) → U811(X)
U811(mark(X)) → U811(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(ok(X)) → LENGTH(X)
LENGTH(mark(X)) → LENGTH(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(ok(X)) → LENGTH(X)
LENGTH(mark(X)) → LENGTH(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(ok(X)) → S(X)
S(mark(X)) → S(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(ok(X)) → S(X)
S(mark(X)) → S(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U721(ok(X1), ok(X2)) → U721(X1, X2)
U721(mark(X1), X2) → U721(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U721(ok(X1), ok(X2)) → U721(X1, X2)
U721(mark(X1), X2) → U721(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U711(mark(X1), X2, X3) → U711(X1, X2, X3)
U711(ok(X1), ok(X2), ok(X3)) → U711(X1, X2, X3)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U711(mark(X1), X2, X3) → U711(X1, X2, X3)
U711(ok(X1), ok(X2), ok(X3)) → U711(X1, X2, X3)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U621(mark(X)) → U621(X)
U621(ok(X)) → U621(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U621(mark(X)) → U621(X)
U621(ok(X)) → U621(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U611(mark(X1), X2) → U611(X1, X2)
U611(ok(X1), ok(X2)) → U611(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U611(mark(X1), X2) → U611(X1, X2)
U611(ok(X1), ok(X2)) → U611(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(mark(X)) → U521(X)
U521(ok(X)) → U521(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(mark(X)) → U521(X)
U521(ok(X)) → U521(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(ok(X1), ok(X2)) → U511(X1, X2)
U511(mark(X1), X2) → U511(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(ok(X1), ok(X2)) → U511(X1, X2)
U511(mark(X1), X2) → U511(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U421(mark(X)) → U421(X)
U421(ok(X)) → U421(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U421(mark(X)) → U421(X)
U421(ok(X)) → U421(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U411(ok(X1), ok(X2)) → U411(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U411(ok(X1), ok(X2)) → U411(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U311(ok(X)) → U311(X)
U311(mark(X)) → U311(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U311(ok(X)) → U311(X)
U311(mark(X)) → U311(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(ok(X)) → U211(X)
U211(mark(X)) → U211(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(ok(X)) → U211(X)
U211(mark(X)) → U211(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U111(mark(X)) → U111(X)
U111(ok(X)) → U111(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U111(mark(X)) → U111(X)
U111(ok(X)) → U111(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(mark(X1), X2) → CONS(X1, X2)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(mark(X1), X2) → CONS(X1, X2)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER(isNat(X)) → PROPER(X)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U51(X1, X2)) → PROPER(X2)
PROPER(U72(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(isNatIList(X)) → PROPER(X)
PROPER(U72(X1, X2)) → PROPER(X1)
PROPER(isNatList(X)) → PROPER(X)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(s(X)) → PROPER(X)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U11(X)) → PROPER(X)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(length(X)) → PROPER(X)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U31(X)) → PROPER(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U62(X)) → PROPER(X)
PROPER(U71(X1, X2, X3)) → PROPER(X2)
PROPER(U71(X1, X2, X3)) → PROPER(X3)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U52(X)) → PROPER(X)
PROPER(U42(X)) → PROPER(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U21(X)) → PROPER(X)
PROPER(U81(X)) → PROPER(X)
PROPER(U71(X1, X2, X3)) → PROPER(X1)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER(isNat(X)) → PROPER(X)
PROPER(U51(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U72(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(isNatIList(X)) → PROPER(X)
PROPER(U72(X1, X2)) → PROPER(X1)
PROPER(isNatList(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U11(X)) → PROPER(X)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(length(X)) → PROPER(X)
PROPER(U91(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U31(X)) → PROPER(X)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2, X3)) → PROPER(X3)
PROPER(U71(X1, X2, X3)) → PROPER(X2)
PROPER(U62(X)) → PROPER(X)
PROPER(U42(X)) → PROPER(X)
PROPER(U52(X)) → PROPER(X)
PROPER(U93(X1, X2, X3, X4)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(U92(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U21(X)) → PROPER(X)
PROPER(U81(X)) → PROPER(X)
PROPER(U71(X1, X2, X3)) → PROPER(X1)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(U72(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U81(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(U71(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U42(X)) → ACTIVE(X)
ACTIVE(U93(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(length(X)) → ACTIVE(X)
ACTIVE(U91(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U92(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X)) → ACTIVE(X)
ACTIVE(U31(X)) → ACTIVE(X)
ACTIVE(U52(X)) → ACTIVE(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(U72(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U81(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(U71(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U42(X)) → ACTIVE(X)
ACTIVE(U93(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(length(X)) → ACTIVE(X)
ACTIVE(U91(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U92(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X)) → ACTIVE(X)
ACTIVE(U31(X)) → ACTIVE(X)
ACTIVE(U52(X)) → ACTIVE(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesReductionPairsProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(X)) → TOP(proper(X))
TOP(ok(X)) → TOP(active(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
U11(mark(X)) → mark(U11(X))
U21(mark(X)) → mark(U21(X))
U31(mark(X)) → mark(U31(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U72(mark(X1), X2) → mark(U72(X1, X2))
s(mark(X)) → mark(s(X))
length(mark(X)) → mark(length(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U11(ok(X)) → ok(U11(X))
U21(ok(X)) → ok(U21(X))
U31(ok(X)) → ok(U31(X))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the usable rules with reduction pair processor [15] with a polynomial ordering [25], all dependency pairs and the corresponding usable rules [17] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

No dependency pairs are removed.

No rules are removed from R.

Used ordering: POLO with Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = 2·x1   
POL(U11(x1)) = x1   
POL(U21(x1)) = 2·x1   
POL(U31(x1)) = 2·x1   
POL(U41(x1, x2)) = 2·x1 + 2·x2   
POL(U42(x1)) = 2·x1   
POL(U51(x1, x2)) = 2·x1 + x2   
POL(U52(x1)) = x1   
POL(U61(x1, x2)) = x1 + 2·x2   
POL(U62(x1)) = x1   
POL(U71(x1, x2, x3)) = x1 + 2·x2 + x3   
POL(U72(x1, x2)) = x1 + 2·x2   
POL(U81(x1)) = x1   
POL(U91(x1, x2, x3, x4)) = 2·x1 + 2·x2 + 2·x3 + 2·x4   
POL(U92(x1, x2, x3, x4)) = x1 + x2 + x3 + 2·x4   
POL(U93(x1, x2, x3, x4)) = x1 + 2·x2 + x3 + x4   
POL(active(x1)) = 2·x1   
POL(cons(x1, x2)) = 2·x1 + 2·x2   
POL(isNat(x1)) = 2·x1   
POL(isNatIList(x1)) = x1   
POL(isNatList(x1)) = x1   
POL(length(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = 2·x1   
POL(proper(x1)) = x1   
POL(s(x1)) = x1   
POL(take(x1, x2)) = x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
QDP
                ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(X)) → TOP(proper(X))
TOP(ok(X)) → TOP(active(X))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule TOP(mark(X)) → TOP(proper(X)) at position [0] we obtained the following new rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(mark(nil)) → TOP(ok(nil))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(mark(zeros)) → TOP(ok(zeros))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(0)) → TOP(ok(0))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
QDP
                    ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(mark(nil)) → TOP(ok(nil))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(X)) → TOP(active(X))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(mark(zeros)) → TOP(ok(zeros))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(0)) → TOP(ok(0))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
QDP
                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(mark(nil)) → TOP(ok(nil))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(X)) → TOP(active(X))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(0)) → TOP(ok(0))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule TOP(ok(X)) → TOP(active(X)) at position [0] we obtained the following new rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(ok(isNatIList(cons(x0, x1)))) → TOP(mark(U41(isNat(x0), x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(length(cons(x0, x1)))) → TOP(mark(U71(isNatList(x1), x1, x0)))
TOP(ok(zeros)) → TOP(mark(cons(0, zeros)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U31(tt))) → TOP(mark(tt))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(isNatList(nil))) → TOP(mark(tt))
TOP(ok(isNat(0))) → TOP(mark(tt))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(ok(isNat(s(x0)))) → TOP(mark(U21(isNat(x0))))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(U52(tt))) → TOP(mark(tt))
TOP(ok(U81(tt))) → TOP(mark(nil))
TOP(ok(isNatIList(x0))) → TOP(mark(U31(isNatList(x0))))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U42(tt))) → TOP(mark(tt))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(ok(length(nil))) → TOP(mark(0))
TOP(ok(U11(tt))) → TOP(mark(tt))
TOP(ok(isNatIList(zeros))) → TOP(mark(tt))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(U21(tt))) → TOP(mark(tt))
TOP(ok(U62(tt))) → TOP(mark(tt))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(isNat(length(x0)))) → TOP(mark(U11(isNatList(x0))))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
QDP
                            ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(isNatIList(cons(x0, x1)))) → TOP(mark(U41(isNat(x0), x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(ok(length(cons(x0, x1)))) → TOP(mark(U71(isNatList(x1), x1, x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(zeros)) → TOP(mark(cons(0, zeros)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U31(tt))) → TOP(mark(tt))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(isNatList(nil))) → TOP(mark(tt))
TOP(ok(isNat(0))) → TOP(mark(tt))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(0)) → TOP(ok(0))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(isNat(s(x0)))) → TOP(mark(U21(isNat(x0))))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(U52(tt))) → TOP(mark(tt))
TOP(ok(U81(tt))) → TOP(mark(nil))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(isNatIList(x0))) → TOP(mark(U31(isNatList(x0))))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U42(tt))) → TOP(mark(tt))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(nil)) → TOP(ok(nil))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(length(nil))) → TOP(mark(0))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U11(tt))) → TOP(mark(tt))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(isNatIList(zeros))) → TOP(mark(tt))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U62(tt))) → TOP(mark(tt))
TOP(ok(U21(tt))) → TOP(mark(tt))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(isNat(length(x0)))) → TOP(mark(U11(isNatList(x0))))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 14 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
QDP
                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(isNatIList(cons(x0, x1)))) → TOP(mark(U41(isNat(x0), x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(ok(length(cons(x0, x1)))) → TOP(mark(U71(isNatList(x1), x1, x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(zeros)) → TOP(mark(cons(0, zeros)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(isNat(s(x0)))) → TOP(mark(U21(isNat(x0))))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(isNatIList(x0))) → TOP(mark(U31(isNatList(x0))))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(isNat(length(x0)))) → TOP(mark(U11(isNatList(x0))))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(zeros)) → TOP(mark(cons(0, zeros)))
The remaining pairs can at least be oriented weakly.

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(isNatIList(cons(x0, x1)))) → TOP(mark(U41(isNat(x0), x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(ok(length(cons(x0, x1)))) → TOP(mark(U71(isNatList(x1), x1, x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(isNat(s(x0)))) → TOP(mark(U21(isNat(x0))))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(isNatIList(x0))) → TOP(mark(U31(isNatList(x0))))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(isNat(length(x0)))) → TOP(mark(U11(isNatList(x0))))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 0   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 0   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 0   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = x1   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = 0   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 1   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
QDP
                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(isNatIList(cons(x0, x1)))) → TOP(mark(U41(isNat(x0), x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(ok(length(cons(x0, x1)))) → TOP(mark(U71(isNatList(x1), x1, x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(isNat(s(x0)))) → TOP(mark(U21(isNat(x0))))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(isNatIList(x0))) → TOP(mark(U31(isNatList(x0))))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(isNat(length(x0)))) → TOP(mark(U11(isNatList(x0))))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(isNatIList(cons(x0, x1)))) → TOP(mark(U41(isNat(x0), x1)))
TOP(ok(length(cons(x0, x1)))) → TOP(mark(U71(isNatList(x1), x1, x0)))
TOP(ok(isNat(s(x0)))) → TOP(mark(U21(isNat(x0))))
TOP(ok(isNatIList(x0))) → TOP(mark(U31(isNatList(x0))))
TOP(ok(isNat(length(x0)))) → TOP(mark(U11(isNatList(x0))))
The remaining pairs can at least be oriented weakly.

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 1   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 0   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 0   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 0   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 1 + x1   
POL(isNatIList(x1)) = 1   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(zeros) → ok(zeros)
proper(U11(X)) → U11(proper(X))
proper(0) → ok(0)
proper(U21(X)) → U21(proper(X))
proper(tt) → ok(tt)
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U31(X)) → U31(proper(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
QDP
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(isNatList(take(x0, x1)))) → TOP(mark(U61(isNat(x0), x1)))
TOP(ok(isNatList(cons(x0, x1)))) → TOP(mark(U51(isNat(x0), x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(U42(isNatIList(x0))))
The remaining pairs can at least be oriented weakly.

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 1   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 0   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 0   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 1   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
QDP
                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(take(0, x0))) → TOP(mark(U81(isNatIList(x0))))
TOP(ok(U51(tt, x0))) → TOP(mark(U52(isNatList(x0))))
TOP(ok(U92(tt, x0, x1, x2))) → TOP(mark(U93(isNat(x2), x0, x1, x2)))
The remaining pairs can at least be oriented weakly.

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 0   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 1   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 1   
POL(U92(x1, x2, x3, x4)) = 1   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
QDP
                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(mark(isNatList(x0))) → TOP(isNatList(proper(x0)))
TOP(mark(isNat(x0))) → TOP(isNat(proper(x0)))
TOP(mark(isNatIList(x0))) → TOP(isNatIList(proper(x0)))
The remaining pairs can at least be oriented weakly.

TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 1   
POL(U21(x1)) = 1   
POL(U31(x1)) = 1   
POL(U41(x1, x2)) = 1   
POL(U42(x1)) = 1   
POL(U51(x1, x2)) = 1   
POL(U52(x1)) = 1   
POL(U61(x1, x2)) = 1   
POL(U62(x1)) = 1   
POL(U71(x1, x2, x3)) = 1   
POL(U72(x1, x2)) = 1   
POL(U81(x1)) = 1   
POL(U91(x1, x2, x3, x4)) = 1   
POL(U92(x1, x2, x3, x4)) = 1   
POL(U93(x1, x2, x3, x4)) = 1   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 1   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 1   
POL(mark(x1)) = 1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 1   
POL(take(x1, x2)) = 1   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
QDP
                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(take(s(x0), cons(x1, x2)))) → TOP(mark(U91(isNatIList(x2), x2, x0, x1)))
The remaining pairs can at least be oriented weakly.

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 0   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 0   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 0   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
QDP
                                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U93(tt, x0, x1, x2))) → TOP(mark(cons(x2, take(x1, x0))))
The remaining pairs can at least be oriented weakly.

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = x1   
POL(U21(x1)) = x1   
POL(U31(x1)) = x1   
POL(U41(x1, x2)) = x1   
POL(U42(x1)) = x1   
POL(U51(x1, x2)) = x1   
POL(U52(x1)) = x1   
POL(U61(x1, x2)) = x1   
POL(U62(x1)) = x1   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = x1   
POL(U92(x1, x2, x3, x4)) = x1   
POL(U93(x1, x2, x3, x4)) = x1   
POL(active(x1)) = x1   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 1   
POL(isNatIList(x1)) = 1   
POL(isNatList(x1)) = 1   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1   
POL(tt) = 1   
POL(zeros) = 0   

The following usable rules [17] were oriented:

proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(zeros) → ok(zeros)
proper(U11(X)) → U11(proper(X))
proper(0) → ok(0)
proper(U21(X)) → U21(proper(X))
proper(tt) → ok(tt)
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U31(X)) → U31(proper(X))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(0)) → mark(tt)
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U81(tt)) → mark(nil)
active(U72(tt, L)) → mark(s(length(L)))
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U62(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U52(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U42(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U62(X)) → U62(active(X))
active(s(X)) → s(active(X))
active(U72(X1, X2)) → U72(active(X1), X2)
active(U81(X)) → U81(active(X))
active(length(X)) → length(active(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
QDP
                                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U61(tt, x0))) → TOP(mark(U62(isNatIList(x0))))
TOP(ok(U71(tt, x0, x1))) → TOP(mark(U72(isNat(x1), x0)))
The remaining pairs can at least be oriented weakly.

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 1   
POL(U21(x1)) = x1   
POL(U31(x1)) = 1   
POL(U41(x1, x2)) = x1   
POL(U42(x1)) = x1   
POL(U51(x1, x2)) = x1   
POL(U52(x1)) = 1   
POL(U61(x1, x2)) = 1 + x1   
POL(U62(x1)) = x1   
POL(U71(x1, x2, x3)) = 1   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 0   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = x1   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 1   
POL(isNatIList(x1)) = 1   
POL(isNatList(x1)) = 1 + x1   
POL(length(x1)) = 1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1   
POL(tt) = 1   
POL(zeros) = 0   

The following usable rules [17] were oriented:

proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(zeros) → ok(zeros)
proper(U11(X)) → U11(proper(X))
proper(0) → ok(0)
proper(U21(X)) → U21(proper(X))
proper(tt) → ok(tt)
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U31(X)) → U31(proper(X))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(0)) → mark(tt)
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U81(tt)) → mark(nil)
active(U72(tt, L)) → mark(s(length(L)))
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U62(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U52(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U42(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
isNatIList(ok(X)) → ok(isNatIList(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
isNatList(ok(X)) → ok(isNatList(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
isNat(ok(X)) → ok(isNat(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U62(X)) → U62(active(X))
active(s(X)) → s(active(X))
active(U72(X1, X2)) → U72(active(X1), X2)
active(U81(X)) → U81(active(X))
active(length(X)) → length(active(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
QDP
                                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U91(tt, x0, x1, x2))) → TOP(mark(U92(isNat(x1), x0, x1, x2)))
The remaining pairs can at least be oriented weakly.

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 0   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 0   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 1   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
QDP
                                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U72(tt, x0))) → TOP(mark(s(length(x0))))
The remaining pairs can at least be oriented weakly.

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U11(x1)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1)) = 0   
POL(U41(x1, x2)) = 0   
POL(U42(x1)) = 0   
POL(U51(x1, x2)) = 0   
POL(U52(x1)) = 0   
POL(U61(x1, x2)) = 0   
POL(U62(x1)) = 0   
POL(U71(x1, x2, x3)) = 0   
POL(U72(x1, x2)) = 1   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 0   
POL(U92(x1, x2, x3, x4)) = 0   
POL(U93(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

take(X1, mark(X2)) → mark(take(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U81(mark(X)) → mark(U81(X))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
s(mark(X)) → mark(s(X))
length(ok(X)) → ok(length(X))
length(mark(X)) → mark(length(X))
U81(ok(X)) → ok(U81(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U52(mark(X)) → mark(U52(X))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U62(ok(X)) → ok(U62(X))
U62(mark(X)) → mark(U62(X))
s(ok(X)) → ok(s(X))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U72(mark(X1), X2) → mark(U72(X1, X2))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ DependencyGraphProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ QDPOrderProof
QDP

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U11(x0))) → TOP(U11(proper(x0)))
TOP(mark(U51(x0, x1))) → TOP(U51(proper(x0), proper(x1)))
TOP(ok(U52(x0))) → TOP(U52(active(x0)))
TOP(mark(U81(x0))) → TOP(U81(proper(x0)))
TOP(mark(U71(x0, x1, x2))) → TOP(U71(proper(x0), proper(x1), proper(x2)))
TOP(ok(U93(x0, x1, x2, x3))) → TOP(U93(active(x0), x1, x2, x3))
TOP(mark(length(x0))) → TOP(length(proper(x0)))
TOP(ok(U71(x0, x1, x2))) → TOP(U71(active(x0), x1, x2))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(U81(x0))) → TOP(U81(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(mark(U42(x0))) → TOP(U42(proper(x0)))
TOP(ok(U92(x0, x1, x2, x3))) → TOP(U92(active(x0), x1, x2, x3))
TOP(mark(U91(x0, x1, x2, x3))) → TOP(U91(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U93(x0, x1, x2, x3))) → TOP(U93(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(U11(x0))) → TOP(U11(active(x0)))
TOP(ok(U42(x0))) → TOP(U42(active(x0)))
TOP(ok(length(x0))) → TOP(length(active(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U31(x0))) → TOP(U31(proper(x0)))
TOP(mark(U52(x0))) → TOP(U52(proper(x0)))
TOP(ok(U62(x0))) → TOP(U62(active(x0)))
TOP(ok(U91(x0, x1, x2, x3))) → TOP(U91(active(x0), x1, x2, x3))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(U92(x0, x1, x2, x3))) → TOP(U92(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(U21(x0))) → TOP(U21(proper(x0)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(mark(U72(x0, x1))) → TOP(U72(proper(x0), proper(x1)))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(U31(x0))) → TOP(U31(active(x0)))
TOP(ok(U21(x0))) → TOP(U21(active(x0)))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(U72(x0, x1))) → TOP(U72(active(x0), x1))
TOP(ok(U51(x0, x1))) → TOP(U51(active(x0), x1))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U62(x0))) → TOP(U62(proper(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

proper(zeros) → ok(zeros)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(0) → ok(0)
proper(U11(X)) → U11(proper(X))
proper(tt) → ok(tt)
proper(U21(X)) → U21(proper(X))
proper(U31(X)) → U31(proper(X))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(isNatIList(X)) → isNatIList(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(isNatList(X)) → isNatList(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(U71(X1, X2, X3)) → U71(proper(X1), proper(X2), proper(X3))
proper(U72(X1, X2)) → U72(proper(X1), proper(X2))
proper(isNat(X)) → isNat(proper(X))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(U81(X)) → U81(proper(X))
proper(nil) → ok(nil)
proper(U91(X1, X2, X3, X4)) → U91(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U92(X1, X2, X3, X4)) → U92(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U93(X1, X2, X3, X4)) → U93(proper(X1), proper(X2), proper(X3), proper(X4))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
U93(mark(X1), X2, X3, X4) → mark(U93(X1, X2, X3, X4))
U93(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U93(X1, X2, X3, X4))
U92(mark(X1), X2, X3, X4) → mark(U92(X1, X2, X3, X4))
U92(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U92(X1, X2, X3, X4))
U91(mark(X1), X2, X3, X4) → mark(U91(X1, X2, X3, X4))
U91(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U91(X1, X2, X3, X4))
U81(mark(X)) → mark(U81(X))
U81(ok(X)) → ok(U81(X))
length(mark(X)) → mark(length(X))
length(ok(X)) → ok(length(X))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
isNat(ok(X)) → ok(isNat(X))
U72(mark(X1), X2) → mark(U72(X1, X2))
U72(ok(X1), ok(X2)) → ok(U72(X1, X2))
U71(mark(X1), X2, X3) → mark(U71(X1, X2, X3))
U71(ok(X1), ok(X2), ok(X3)) → ok(U71(X1, X2, X3))
U62(mark(X)) → mark(U62(X))
U62(ok(X)) → ok(U62(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
isNatList(ok(X)) → ok(isNatList(X))
U52(mark(X)) → mark(U52(X))
U52(ok(X)) → ok(U52(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
isNatIList(ok(X)) → ok(isNatIList(X))
U42(mark(X)) → mark(U42(X))
U42(ok(X)) → ok(U42(X))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X)) → mark(U31(X))
U31(ok(X)) → ok(U31(X))
U21(mark(X)) → mark(U21(X))
U21(ok(X)) → ok(U21(X))
U11(mark(X)) → mark(U11(X))
U11(ok(X)) → ok(U11(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
active(zeros) → mark(cons(0, zeros))
active(U11(tt)) → mark(tt)
active(U21(tt)) → mark(tt)
active(U31(tt)) → mark(tt)
active(U41(tt, V2)) → mark(U42(isNatIList(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isNatList(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt, V2)) → mark(U62(isNatIList(V2)))
active(U62(tt)) → mark(tt)
active(U71(tt, L, N)) → mark(U72(isNat(N), L))
active(U72(tt, L)) → mark(s(length(L)))
active(U81(tt)) → mark(nil)
active(U91(tt, IL, M, N)) → mark(U92(isNat(M), IL, M, N))
active(U92(tt, IL, M, N)) → mark(U93(isNat(N), IL, M, N))
active(U93(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(U11(isNatList(V1)))
active(isNat(s(V1))) → mark(U21(isNat(V1)))
active(isNatIList(V)) → mark(U31(isNatList(V)))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(U41(isNat(V1), V2))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(U51(isNat(V1), V2))
active(isNatList(take(V1, V2))) → mark(U61(isNat(V1), V2))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U71(isNatList(L), L, N))
active(take(0, IL)) → mark(U81(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U91(isNatIList(IL), IL, M, N))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U11(X)) → U11(active(X))
active(U21(X)) → U21(active(X))
active(U31(X)) → U31(active(X))
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2, X3)) → U71(active(X1), X2, X3)
active(U72(X1, X2)) → U72(active(X1), X2)
active(s(X)) → s(active(X))
active(length(X)) → length(active(X))
active(U81(X)) → U81(active(X))
active(U91(X1, X2, X3, X4)) → U91(active(X1), X2, X3, X4)
active(U92(X1, X2, X3, X4)) → U92(active(X1), X2, X3, X4)
active(U93(X1, X2, X3, X4)) → U93(active(X1), X2, X3, X4)
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.